package LAB;

public class Tax {
	final static double t1 = 0.1;
	final static double t2 = 0.2;
	final static double t3 = 0.3;
	public static double calculateWages(double s) {
		if (s < 1000)
			return (s-s*t1);
		else if ((s <3000) && (s >= 1000) )
			return (s-s*t2);
		else
			return (s-s*t3);			
	}
}
